<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var obj={
				x:12
			}
			function demo(){
				console.log(this);
			}
			var fn=demo.bind(obj);
			fn();//输出obj;
			console.log(fn);
			demo();
		</script>
	</body>
</html>
